<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            border: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .box {
            display: flex;
            flex-wrap: wrap;
            width: 80%;
            height: 1000px;
            margin: 0 auto;
            min-width: 1252px;
        }
        .box .item {
            flex: 1;
            background-color: pink;
            margin: 16px;
            height: 100px;

        }
        @media screen and (max-width: 1536px) {
            .box .item {
                min-width: calc(25% - 16px);
                max-width: calc(25% - 16px);
            }
        }
        @media screen and (min-width: 1536px) {
            .box .item {
                min-width: calc(20% - 16px);
                max-width: calc(20% - 16px);
            }
        }
        
        @media  screen and (min-width: 1316px) and (max-width: 1536px){
            .box .item {
                min-width: calc(16.66666667% - 16px);
                max-width: calc(16.66666667% - 16px); 
            }
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
    </div>
</body>
</html>